package com.mall.domain;

import java.io.Serializable;

/**
 * 分页实体类
 * @author : liangY
 * @date : 2020-12-30 11:28
 */
public class Page implements Serializable {

    /**
     * 模糊查询参数
     */
    private String query;
    /**
     * 当前页码
     */
    private int num;
    /**
     * 数量
     */
    private int size;
    private int cat_level;
    private int cat_id;

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getCat_level() {
        return cat_level;
    }

    public void setCat_level(int cat_level) {
        this.cat_level = cat_level;
    }

    public int getCat_id() {
        return cat_id;
    }

    public void setCat_id(int cat_id) {
        this.cat_id = cat_id;
    }

    @Override
    public String toString() {
        return "Query{" +
                "query='" + query + '\'' +
                ", num=" + num +
                ", size=" + size +
                '}';
    }
}
